package com.wisely.highlight_spring4.ch2.prepost;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
 * @PostConstruct  在构造函数执行完之后执行
 * 	@PreDestroy		在bean销毁之前执行
 * @author dell
 *
 */
@Configuration
public class PrePostConfig {
	@Bean(initMethod="init",destroyMethod="destroy")
	public BeanWayService beanWayService(){
		return new BeanWayService();
	}
	@Bean
	public JSR250WayService jsr250WayService(){
		return new JSR250WayService();
	}
}
